package cn.zsb.basic;

import java.util.Scanner;
import java.util.StringJoiner;

public class stringBuilder {
    public static void main(String[] args) {
        /*StringBuilder sb = new StringBuilder("lisa");
        *//*sb.append(1);
        sb.append(2.3);
        sb.append(true);*//*

        sb.reverse().append("live").insert(1,'r');
        int len = sb.length();
        System.out.println(len);
        String str = sb.toString();
        System.out.println(str);*/

        Scanner sc = new Scanner(System.in);
        /*String str = sc.next();

        String result = new StringBuilder().append(str).reverse().toString();
        System.out.println(result);

        if (str.equals(result)) {
            System.out.println("对称");
        } else
            System.out.println("不对称");*/

        StringJoiner sj = new StringJoiner("---","[","]");
        sj.add("aaa").add("bbb").add("ccc");
        System.out.println(sj);
    }
}
